package com.ruoyi.project.orderSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.orderSystem.mapper.OrderStationMapper;
import com.ruoyi.project.orderSystem.domain.OrderStation;
import com.ruoyi.project.orderSystem.service.IOrderStationService;

/**
 * 工单站点Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-01-24
 */
@Service
public class OrderStationServiceImpl implements IOrderStationService 
{
    @Autowired
    private OrderStationMapper orderStationMapper;

    /**
     * 查询工单站点
     * 
     * @param id 工单站点ID
     * @return 工单站点
     */
    @Override
    public OrderStation selectOrderStationById(Long id)
    {
        return orderStationMapper.selectOrderStationById(id);
    }

    /**
     * 查询工单站点列表
     * 
     * @param orderStation 工单站点
     * @return 工单站点
     */
    @Override
    public List<OrderStation> selectOrderStationList(OrderStation orderStation)
    {
        return orderStationMapper.selectOrderStationList(orderStation);
    }

    /**
     * 新增工单站点
     * 
     * @param orderStation 工单站点
     * @return 结果
     */
    @Override
    public int insertOrderStation(OrderStation orderStation)
    {
        return orderStationMapper.insertOrderStation(orderStation);
    }

    /**
     * 修改工单站点
     * 
     * @param orderStation 工单站点
     * @return 结果
     */
    @Override
    public int updateOrderStation(OrderStation orderStation)
    {
        return orderStationMapper.updateOrderStation(orderStation);
    }

    /**
     * 批量删除工单站点
     * 
     * @param ids 需要删除的工单站点ID
     * @return 结果
     */
    @Override
    public int deleteOrderStationByIds(Long[] ids)
    {
        return orderStationMapper.deleteOrderStationByIds(ids);
    }

    /**
     * 删除工单站点信息
     * 
     * @param id 工单站点ID
     * @return 结果
     */
    @Override
    public int deleteOrderStationById(Long id)
    {
        return orderStationMapper.deleteOrderStationById(id);
    }
}
